%XPATH$
%FOREACH#

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{casual}
\moderncvcolor{blue}

\usepackage[scale=0.75]{geometry}

\firstname{$/Document/Name/First$}
\familyname{$/Document/Name/Last$}
\title{$/Document/Objective$}

\address{$/Document/Contact/AddressList/Address/Type[text()="Current"]/../Line1$, %
$/Document/Contact/AddressList/Address/Type[text()="Current"]/../Line2$}
{$/Document/Contact/AddressList/Address/Type[text()="Current"]/../City$, %
$/Document/Contact/AddressList/Address/Type[text()="Current"]/../Pin$}

\mobile{$/Document/Contact/Mobile$}

\email{$/Document/Contact/Email$}
%\homepage{www.johndoe.com}                    % optional, remove the line if not wanted
%\extrainfo{additional information}            % optional, remove the line if not wanted
\photo[64pt][0.4pt]{picture}                  % '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file; optional, remove the line if not wanted
%\quote{Some quote (optional)}                 % optional, remove the line if not wanted

% to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother

% bibliography with mutiple entries
%\usepackage{multibib}
%\newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}

\makecvtitle

\section{Education}

#
\cventry{$/Document/EducationList/Education/Start/Year$--$/Document/EducationList/Education/End/Year$}
{$/Document/EducationList/Education/Degree$, $/Document/EducationList/Education/Major$}
{$/Document/EducationList/Education/Institute/Name$}
{$/Document/EducationList/Education/Institute/Address/Line$}
{\textit{$/Document/EducationList/Education/Score/Result$/$/Document/EducationList/Education/Score/Max$}}
{$/Document/EducationList/Education/Board$}  % arguments 3 to 6 can be left empty
#

%\section{Master thesis}
%\cvitem{title}{\emph{Title}}
%\cvitem{supervisors}{Supervisors}
%\cvitem{description}{Short thesis abstract}

\section{Employment}
#
\cventry{$/Document/EmploymentList/Employment/Start/Year$--%
$/Document/EmploymentList/Employment/End/Year$}
{$/Document/EmploymentList/Employment/Designation$}
{$/Document/EmploymentList/Employment/Company/Name$}
{$/Document/EmploymentList/Employment/Company/Address$}
{}
{$/Document/EmploymentList/Employment/Summary$}
#

\section{Projects}
\subsection{Professional}
#
\cventry{$/Document/Projects/Project/Type[text()="Professional"]/../Start/Year$--%
$/Document/Projects/Project/Type[text()="Professional"]/../End/Year$}
{$/Document/Projects/Project/Type[text()="Professional"]/../Summary$}
{$/Document/Projects/Project/Type[text()="Professional"]/../EmployeeXPath$}
{$/Document/Projects/Project/Type[text()="Professional"]/../Technology$}{}
{$/Document/Projects/Project/Type[text()="Professional"]/../About$\newline{}
$/Document/Projects/Project/Type[text()="Professional"]/../Contribution$}
#

\subsection{Academic}
#
\cventry{$/Document/Projects/Project/Type[text()="Academic"]/../Start/Year$--%
$/Document/Projects/Project/Type[text()="Academic"]/../End/Year$}
{$/Document/Projects/Project/Type[text()="Academic"]/../Summary$}
{$/Document/Projects/Project/Type[text()="Academic"]/../EmployeeXPath$}
{$/Document/Projects/Project/Type[text()="Academic"]/../Technology$}{}
{$/Document/Projects/Project/Type[text()="Academic"]/../About$\newline{}
$/Document/Projects/Project/Type[text()="Academic"]/../Contribution$}
#

\subsection{Hobby}
#
\cventry{$/Document/Projects/Project/Type[text()="Hobby"]/../Start/Year$--%
$/Document/Projects/Project/Type[text()="Hobby"]/../End/Year$}
{$/Document/Projects/Project/Type[text()="Hobby"]/../Summary$}
{$/Document/Projects/Project/Type[text()="Hobby"]/../EmployeeXPath$}
{$/Document/Projects/Project/Type[text()="Hobby"]/../Technology$}{}
{$/Document/Projects/Project/Type[text()="Hobby"]/../About$\newline{}$/Document/Projects/Project/Type[text()="Hobby"]/../Contribution$}
#


%\section{Experience}
%\subsection{Vocational}
%\cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%
%Detailed achievements:%
%\begin{itemize}%
%\item Achievement 1;
%\item Achievement 2, with sub-achievements:
%  \begin{itemize}%
%  \item Sub-achievement (a);
%  \item Sub-achievement (b), with sub-sub-achievements (don't do this!);
%    \begin{itemize}
%    \item Sub-sub-achievement i;
%    \item Sub-sub-achievement ii;
%    \item Sub-sub-achievement iii;
%    \end{itemize}
%  \item Sub-achievement (c);
%  \end{itemize}
%\item Achievement 3.
%\end{itemize}}
%\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}
%\subsection{Miscellaneous}
%\cventry{year--year}{Job title}{Employer}{City}{}{Description}

\section{Languages}
#
\cvitemwithcomment{$/Document/SkillList/Skill/Name[text()="Computer Languages"]/../List/Value/LastUsed/Year$}
{$/Document/SkillList/Skill/Name[text()="Computer Languages"]/../List/Value/Name$}
{$/Document/SkillList/Skill/Name[text()="Computer Languages"]/../List/Value/Proficiency$}
#

\section{Version control}
#
\cvitemwithcomment{$/Document/SkillList/Skill/Name[text()="Version control"]/../List/Value/LastUsed/Year$}
{$/Document/SkillList/Skill/Name[text()="Version control"]/../List/Value/Name$}
{$/Document/SkillList/Skill/Name[text()="Version control"]/../List/Value/Proficiency$}
#

\section{Development Platforms}
#
\cvitemwithcomment{$/Document/SkillList/Skill/Name[text()="Development Platforms"]/../List/Value/LastUsed/Year$}
{$/Document/SkillList/Skill/Name[text()="Development Platforms"]/../List/Value/Name$}
{$/Document/SkillList/Skill/Name[text()="Development Platforms"]/../List/Value/Proficiency$}
#

\section{Databases}
#
\cvitemwithcomment{$/Document/SkillList/Skill/Name[text()="Databases"]/../List/Value/LastUsed/Year$}
{$/Document/SkillList/Skill/Name[text()="Databases"]/../List/Value/Name$}
{$/Document/SkillList/Skill/Name[text()="Databases"]/../List/Value/Proficiency$}
#

\section{Computer skills}
\cvdoubleitem{Development IDE}
{#$/Document/SkillList/Skill/Name[text()="Development IDE"]/../List/Value/Name$, #}
{Operating Systems}
{#$/Document/SkillList/Skill/Name[text()="Operating Systems"]/../List/Value/Name$, #}


\section{Interests}
#
\cvitem{$/Document/Interests/Interest/Name$}{$/Document/Interests/Interest/Description$}
#

\section{Awards}
#
\cvitemwithcomment{$/Document/AwardsAndAchievements/Award/Year$}
{$/Document/AwardsAndAchievements/Award/Name$ by $/Document/AwardsAndAchievements/Award/Organizer$}
{$/Document/AwardsAndAchievements/Award/Summary$}
#

%\cvlistitem{Item 2}
%\cvlistitem{Item 3}

%\renewcommand{\listitemsymbol}{-~}            % change the symbol for lists

%\section{Achievements}
%\cvlistdoubleitem{Item 1}{Item 4}
%\cvlistdoubleitem{Item 2}{Item 5\cite{book1}}
%\cvlistdoubleitem{Item 3}{}

% Publications from a BibTeX file without multibib\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% for BibTeX numerical labels
%\nocite{*}
%\bibliographystyle{plain}
%\bibliography{publications}                   % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%\section{Publications}
%\nocitebook{book1,book2}
%\bibliographystylebook{plain}
%\bibliographybook{publications}              % 'publications' is the name of a BibTeX file
%\nocitemisc{misc1,misc2,misc3}
%\bibliographystylemisc{plain}
%\bibliographymisc{publications}              % 'publications' is the name of a BibTeX file

%\clearpage

\end{document}
%% end of file `template.tex'.
